﻿namespace Cos.Module.Template.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class OptionCultureDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapOptionCultureDataModel()
        {
            new PersistenceSpecification<OptionCultureDataModel>(Session)
                .CheckProperty(x => x.CultureCode, this.Culture.Id)
                .CheckProperty(x => x.DisplayName, "Name")
                .CheckProperty(x => x.OptionId, this.Option.Id)
                .VerifyTheMappings();
        }
    }
}
